package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.RoleItemInfoModel;
import com.iris.live.services.data.models.RoleItemModel;
import com.iris.live.services.data.models.RoleItemModelPK;
import com.iris.live.services.data.models.RoleModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by yitianle on 2017/8/10.
 */
public interface RoleItemInfoRepository extends JpaRepository<RoleItemInfoModel,Integer> {

    @Query("select u from RoleItemInfoModel u where u.isGroup = ?1 ")
    List<RoleItemInfoModel> findAllFunctionList(Integer groupType);
}
